import {request} from './request.js' //导入封装好的js文件
 
//登录  post请求
export const login = (data)=>{
  return request({
    url:'/business/login/',
    method:'post',
    data:data
  })
}
// 修改昵称
export const account = (data, id)=>{
  return request({
    url:'/account/'+id+"/",
    method:'put',
    data:data
  })
}

// 发送验证码
export const send_sms_code = (data)=>{
  return request({
    url:'/send_sms_code/',
    method:'post',
    data:data
  })
}
// 获取钓场信息
export const get_fish_place_info = (id)=>{
  return request({
    url:'/fish_place/'+id+"/",
    method:'get',
  })
}
// 获取钓场
export const get_fish_place = (data)=>{
  return request({
    url:'/fish_place/',
    method:'get',
    data
  })
}
// 钓场新增
export const add_fish_place = (data)=>{
  return request({
    url:'/fish_place/',
    method:'post',
    data:data
  })
}
// 钓场设置
export const put_fish_place = (data,id)=>{
  return request({
    url:'/fish_place/'+id+"/",
    method:'put',
    data:data
  })
}

// 钓场标签
export const get_fish_place_label = (data)=>{
  return request({
    url:'/get_fish_place_label/',
    method:'get',
    data
  })
}

export const pictures = (data) => {
  return request({
    url:'/pictures/',
    method:'post',
    data:data
  })
}